package com.hp.easyBuy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hp.easyBuy.entity.TAddress;
import org.springframework.stereotype.Service;

import java.util.List;

//地址service层
public interface AddressService extends IService<TAddress> {
    //根据默认状态查询用户地址
    public List<TAddress> getAddressList(Long userId);

    //将地址设置为默认地址
    boolean updateStatus(Integer addressId);
    //根据用户id获取地址列表,将默认地址排在第一行
    List<TAddress>list(Integer userid);
    //查询当前默认地址,设置为不默认
    boolean getAddress();

}
